﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/LOSSite.Master" Inherits="System.Web.Mvc.ViewPage<DataAccessLayer.Models.Mortgage>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Content" runat="server">
    <p>
    </p>
    <h2>
        Create Legal Mortgage</h2>
    <p>
        Mortgage Details
    </p>
    <% Html.EnableClientValidation(); %>
    <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>
    <% using (Html.BeginForm())
       {%>
    <div class="Editor-Main">
        <div class="Editor-Content">
            <%: Html.LabelFor(model => model.Amount) %>
        </div>
        <div class="Editor-Content">
            <%: Html.TextBoxFor(model => model.Amount) %>&nbsp;<%: Html.ValidationMessageFor(model => model.Amount) %>
        </div>
        <p>
            Property Detail
        </p>
        <div class="Editor-Content">
            <%: Html.LabelFor(model => model.Properties.Value)%>
        </div>
        <div class="Editor-Content">
            <%: Html.TextBoxFor(model => model.Properties.Value)%>&nbsp;<%: Html.ValidationMessageFor(model => model.Properties.Value) %>
        </div>
        <div class="Editor-Content">
            <%= Html.LabelFor(model => model.Properties.Address.AddressLine1)%>
        </div>
        <div class="Editor-Content">
            <%= Html.TextBoxFor(model => model.Properties.Address.AddressLine1)%>&nbsp;<%= Html.ValidationMessageFor(model => model.Properties.Address.AddressLine1)%>
        </div>
        <div class="Editor-Content">
            <%= Html.LabelFor(model => model.Properties.Address.AddressLine2)%>
        </div>
        <div class="Editor-Content">
            <%= Html.TextBoxFor(model => model.Properties.Address.AddressLine2)%>&nbsp;<%= Html.ValidationMessageFor(model => model.Properties.Address.AddressLine2)%>
        </div>
        <div class="Editor-Content">
            <%= Html.LabelFor(model => model.Properties.Address.AddressLine3)%>
        </div>
        <div class="Editor-Content">
            <%= Html.TextBoxFor(model => model.Properties.Address.AddressLine3)%>&nbsp;<%= Html.ValidationMessageFor(model => model.Properties.Address.AddressLine3)%>
        </div>
        <div class="Editor-Content">
            <%= Html.LabelFor(model => model.Properties.Address.StateCity)%>
        </div>
        <div class="Editor-Content">
            <%= Html.TextBoxFor(model => model.Properties.Address.StateCity)%>&nbsp;<%= Html.ValidationMessageFor(model => model.Properties.Address.StateCity)%>
        </div>
        <div class="Editor-Content">
            <%= Html.LabelFor(model => model.Properties.Address.PostalCode)%>
        </div>
        <div class="Editor-Content">
            <%= Html.TextBoxFor(model => model.Properties.Address.PostalCode)%>&nbsp;<%= Html.ValidationMessageFor(model => model.Properties.Address.PostalCode)%>
        </div>
        <div class="Editor-Content">
            <%= Html.LabelFor(model => model.Properties.Address.Country)%>
        </div>
        <div class="Editor-Content">
            <%= Html.DropDownListFor(model => model.Properties.Address.CountryCode, (SelectList)ViewData["CountryList"])%>
        </div>
        <div class="Editor-Content">
            <%: Html.LabelFor(model => model.Properties.MinPropLeasePeriod)%>
        </div>
        <div class="Editor-Content">
            <%: Html.TextBoxFor(model => model.Properties.MinPropLeasePeriod, new { size = 5, maxlength = 3 })%>&nbsp;<%: Html.ValidationMessageFor(model => model.Properties.MinPropLeasePeriod) %>
            <%= Html.DropDownListFor(model => model.Properties.MinPropLeaseUnit, (SelectList)ViewData["TnrUnitList"])%>&nbsp;<%: Html.ValidationMessageFor(model => model.Properties.MinPropLeaseUnit)%>
        </div>
        <p>
            <input type="submit" value="Create" />
        </p>
    </div>
    <% } %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Greeting" runat="server">
    <% Html.RenderPartial("Greeting", Session["LoggedUser"]); %>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MenuList" runat="server">
    <% Html.RenderPartial("MenuList", Session["LoggedUser"]); %>
</asp:Content>
